package com.vst.hsd.dominio;

import java.io.Serializable;
import javax.persistence.*;

/**
 * The primary key class for the column_por_grid database table.
 * 
 */
@Embeddable
public class ColumnPorGridPK implements Serializable {
	//default serial version id, required for serializable classes.
	private static final long serialVersionUID = 1L;

	@Column(name="id_columna")
	private int idColumna;

	@Column(name="lista_id_recurso")
	private int listaIdRecurso;

    public ColumnPorGridPK() {
    }
	public int getIdColumna() {
		return this.idColumna;
	}
	public void setIdColumna(int idColumna) {
		this.idColumna = idColumna;
	}
	public int getListaIdRecurso() {
		return this.listaIdRecurso;
	}
	public void setListaIdRecurso(int listaIdRecurso) {
		this.listaIdRecurso = listaIdRecurso;
	}

	public boolean equals(Object other) {
		if (this == other) {
			return true;
		}
		if (!(other instanceof ColumnPorGridPK)) {
			return false;
		}
		ColumnPorGridPK castOther = (ColumnPorGridPK)other;
		return 
			(this.idColumna == castOther.idColumna)
			&& (this.listaIdRecurso == castOther.listaIdRecurso);

    }
    
	public int hashCode() {
		final int prime = 31;
		int hash = 17;
		hash = hash * prime + this.idColumna;
		hash = hash * prime + this.listaIdRecurso;
		
		return hash;
    }
}